package com.easybuy.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.easybuy.pojo.User_address;

public interface User_addressMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(User_address record);

    int insertSelective(User_address record);

    User_address selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(User_address record);

    int updateByPrimaryKey(User_address record);
    //查看地址
    List<User_address> selectAddressByUserId(Integer userId); 
    //
    User_address selectAddressById(Integer id);
    //新增地址
    int	insertNew(User_address address);
    //删除地址
    int deleteAddress(Integer id);
    
    int updateAddress(User_address address);
    //设置默认地址
    int setdefault(@Param("id") Integer id,@Param("userId")Integer userId );
    //显示默认地址
    User_address viewdefault(Integer userId);
    
}